const Koa=require('koa');
let app=new Koa();

const cors=require('koa2-cors');
const controller=require('./controllers')
const model=require('./model')

app.use(cors());
controller(app)
// model.sync(true)

let port=8000;
app.listen(port);
console.log(`http://localhost:${port}`);